import request from "./axios";

interface GetAnnouncementProps {
  status?: string;
  startDate?: string; // 根据你的需求添加状态
  endDate?: string;
  userType?: string;
}

const api = "/api/v1";

export const getAnnouncementList = (params: GetAnnouncementProps) => {
  return request.post(`${api}/announcement/getList`, params);
};

export const getRegisterList = () => {
  return request.get(`${api}/register/getList`);
};
